import Mock from 'mockjs'
import homeApi from './home'
import userApi from './user'

// 设置 200~1000 毫秒延时请求数据
Mock.setup({
  timeout: '200-1000'
})

// 首页相关
// 拦截的是 /home/getData
Mock.mock(/\/home\/getData/, 'get', homeApi.getHomeData)

Mock.mock(/\/user\/getUser/, 'get', userApi.getUserData)
